package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"shop/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/anchor/add", &controllers.AnchorController{}, "post:Add")
	beego.Router("/anchor/list", &controllers.AnchorController{}, "get:List")
	beego.Router("/anchor/delete", &controllers.AnchorController{}, "get:Del")
	beego.Router("/anchor/info", &controllers.AnchorController{}, "get:Info")
	beego.Router("/anchor/update", &controllers.AnchorController{}, "get:Update")
}
